
ARCH		:= $(shell uname -m)
OS			:= $(shell uname -s | tr A-Z a-z)

ifeq ( $(ARCH), "i386" )
	HOST = "GENERIC"
else
	HOST = $(ARCH)
endif

CWD			:= $(shell if [ $(PWD) != "" ] ; then echo $(PWD); else pwd; fi)

all :
	@echo -n "arch: '$(ARCH)', "
	@echo -n "os: $(OS), "
	@echo -n "host: $(HOST), "
	@echo -n "cwd: $(CWD), "
	@echo ""

